<template>
  <div class="dashboard-container">
    <el-row :gutter="12">
      <el-col :span="12">
        <el-card shadow="always" style="height: 600px;">
          <div slot="header" class="clearfix">
            网站信息
          </div>
          <el-form ref="form" :model="form" label-width="120px">
            <el-form-item label="LOGO/官微">
              <el-image class="logo"></el-image>
              <el-image
                style="width: 100px; height: 100px;float: right;"
              ></el-image>
            </el-form-item>
            <el-form-item label="网站名称">
              <el-input disabled="disabled" v-model="form.name"></el-input>
            </el-form-item>
            <el-form-item label="官方微博">
              <el-input disabled="disabled" v-model="form.name"></el-input>
            </el-form-item>
            <el-form-item label="咨询邮箱">
              <el-input disabled="disabled" v-model="form.name"></el-input>
            </el-form-item>
            <el-form-item label="传真">
              <el-input disabled="disabled" v-model="form.name"></el-input>
            </el-form-item>
            <el-form-item label="Email">
              <el-input disabled="disabled" v-model="form.name"></el-input>
            </el-form-item>
            <el-form-item label="邮编">
              <el-input disabled="disabled" v-model="form.name"></el-input>
            </el-form-item>
          </el-form>
        </el-card>
      </el-col>
      <el-col :span="12">
        <el-card shadow="always" style="height: 600px;">
          <div slot="header" class="clearfix">
            企业信息
          </div>
          <el-form ref="form" :model="form" label-width="120px">
            <el-divider>基础信息</el-divider>
            <el-form-item label="公司名称">
              <el-input disabled="disabled" v-model="form.name"></el-input>
            </el-form-item>
            <el-form-item label="公司详细地址">
              <el-input disabled="disabled" v-model="form.name"></el-input>
            </el-form-item>
            <el-divider>公交</el-divider>
            <el-form-item label="站台">
              <el-input disabled="disabled" v-model="form.name"></el-input>
            </el-form-item>
            <el-form-item label="线路">
              <el-input disabled="disabled" v-model="form.name"></el-input>
            </el-form-item>
            <el-divider>地铁</el-divider>
            <el-form-item label="站台">
              <el-input disabled="disabled" v-model="form.name"></el-input>
            </el-form-item>
            <el-form-item label="线路">
              <el-input disabled="disabled" v-model="form.name"></el-input>
            </el-form-item>
          </el-form>
        </el-card>
      </el-col>
      <el-col :span="24" style="margin-top: 15px;">
        <el-carousel height="200px" direction="vertical" :autoplay="false">
          <el-carousel-item v-for="item in 3" :key="item">
            <h3 class="medium">{{ item }}</h3>
          </el-carousel-item>
        </el-carousel>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { mapGetters } from "vuex";

export default {
  name: "Dashboard",
  computed: {
    ...mapGetters(["name"])
  },
  data() {
    return {
      form: {
        name: "---"
      }
    };
  }
};
</script>

<style lang="less" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }

  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}

.logo {
  width: calc(100% - 105px);
  height: 100px;
}
.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 200px;
  margin: 0;
  text-align: center;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>
